package com.cfg.annotation;


import com.cfg.Service;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 动态代理Service注解
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface ServiceDynamicProxy {

    public static final String KEY = "service";

    /**
     * 代理的service类
     * @return target class
     */
    Class<? extends Service> target();

    /**
     * 说明
     * @return 功能说明
     */
    String desc() default "";
}
